Write-Host "启动后端服务..."
$startDir = Join-Path $PSScriptRoot "start"
$userScript = Join-Path $startDir "user-service-start.ps1"
$webScript = Join-Path $startDir "web-start.ps1"

# 启动用户服务
Start-Process pwsh -ArgumentList '-NoExit', '-File', $userScript

# 启动考试服务（未实现，暂时注释）
# $examScript = Join-Path $startDir "exam-service-start.ps1"
# Start-Process pwsh -ArgumentList '-NoExit', '-File', $examScript

# 启动评分服务（未实现，暂时注释）
# $scoringScript = Join-Path $startDir "scoring-service-start.ps1"
# Start-Process pwsh -ArgumentList '-NoExit', '-File', $scoringScript

# 启动题库服务（未实现，暂时注释）
# $questionScript = Join-Path $startDir "question-service-start.ps1"
# Start-Process pwsh -ArgumentList '-NoExit', '-File', $questionScript

Write-Host "启动前端服务..."
Start-Process pwsh -ArgumentList '-NoExit', '-File', $webScript

Write-Host "所有服务启动命令已执行，请检查各窗口输出。"
# Read-Host -Prompt "按任意键退出" 